<template>
  <div class="app-container" style="position: relative;">
    <!-- 切换 -->
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="仪器待检定/校准列表" name="1">
        <Tobecertified />
      </el-tab-pane>
      <el-tab-pane label="历史仪器检定/校准列表" name="2">
        <history />
      </el-tab-pane>
    </el-tabs>
    <el-button
      size="mini"
      style="position: absolute;right:200px;top:20px;"
      type="text"
      @click="Notificationsettings"
      >通知设置</el-button
    >

    <el-dialog
      title="通知频次设置"
      :data="searchForm"
      :visible.sync="NotificationsettingsV"
      width="750px"
      center
      :close-on-click-modal="false"
      
    >
      <el-form ref="searchForm" :rules="rules" :model="searchForm" label-width="150px">
        <el-row :gutter="10">
          <el-form-item
            prop="warningType"
            label="预警通知时间:"
          >
            <el-col :span="6">
              <el-select
                :style="'width:100%;'"
                v-model="searchForm.warningType"
                value-key="name"
                @change="firstColumnChangeAction($event)"
                placeholder="请选择"
              >
                <el-option
                  v-for="item in firstColumnList"
                  :key="item.id"
                  :label="item.name"
                  :value="item"
                ></el-option>
              </el-select>
            </el-col>
            <el-col :span="6">
              <el-select
                :style="'width:100%'"
                @change="secondColumnChangeAction($event)"
                v-model="searchForm.warningCycle"
                value-key="id"
                placeholder="请选择"
                :disabled="second"
              >
                <el-option
                  v-for="item in secondColumnList"
                  :key="item.id"
                  :label="item.name"
                  :value="item"
                ></el-option>
              </el-select>
            </el-col>
            <el-col :span="6">
              <el-select
                :style="'width:100%'"
                @change="ehangeAction($event)"
                value-key="id"
                v-model="searchForm.warningTime"
                placeholder="请选择"
                :disabled="action"
              >
                <el-option
                  v-for="item in threeColumnList"
                  :key="item.id"
                  :label="item.name"
                  :value="item"
                ></el-option>
              </el-select>
            </el-col>
          </el-form-item>

          <el-form-item prop="firstDay">
            <el-col :span="20">
              <template v-model="searchFormData.firstDay">
                <el-checkbox
                  v-model="checked"
                  @change="firstDayData"
                  :disabled="theFirstDayOfWarning"
                  v-show="showRentPrise"
                  >纳入预警首日通知</el-checkbox
                >
              </template>
            </el-col>
          </el-form-item>

          <el-form-item prop="alarmType" label="告警通知时间:">
            <el-col :span="6">
              <el-select
                @change="secondColumnChange($event)"
                v-model="searchForm.alarmType"
                style="width: 100%"
                value-key="id"
                clearable
              >
                <el-option
                  v-for="item in alertNotifications"
                  :key="item.id"
                  :label="item.name"
                  :value="item"
                ></el-option>
              </el-select>
            </el-col>
            <el-col :span="6">
              <el-select
                v-model="searchForm.alarmCycle"
                style="width: 100%"
                @change="secondColumn($event)"
                value-key="id"
                clearable
              >
                <el-option
                  v-for="item in notifications"
                  :key="item.id"
                  :label="item.name"
                  :value="item"
                ></el-option>
              </el-select>
            </el-col>
          </el-form-item>

          <el-form-item prop="type" label="通知方式:">
            <el-checkbox-group
              v-model="checkList"
              @change="handleCheckedCitiesChange"
            >
              <el-checkbox label="1">平台信息</el-checkbox>
              <el-checkbox label="2">微信服务通知</el-checkbox>
            </el-checkbox-group>
          </el-form-item>

          <el-col :span="15">
            <el-form-item prop="user" label="通知接收人:">
              <el-select
                v-model="searchForm.user"
                @change="handleCheckedCitiesUser"
                multiple
                placeholder="请选择"
              >
                <el-option
                  v-for="item in factorData"
                  :key="item.userId"
                  :label="item.empName"
                  :value="item.empName"
                >
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="NotificationsettingsV = false">取消</el-button>
        <el-button type="primary" @click="StorageConfirm">确认</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import * as api from "@/api/Tobecertified";
import Tobecertified from "./components/Tobecertified";
import history from "./components/history";
export default {
  components: { Tobecertified, history },
  data() {
    return {
      //默认tab切换为1
      activeName: "1",
      NotificationsettingsV: false,
      second: false,
      action: false,
      theFirstDayOfWarning: false,
      showRentPrise: true,
      factorData: [],
      rules: {
        warningType: [{ required: true, message: "预警通知时间不能为空", trigger: "blur" }],
        alarmType: [ { required: true, message: "告警通知时间不能为空", trigger: "blur" }],
      },
      cityOptions: [
        {
          value: "平台",
          id: "1"
        },
        {
          value: "微信服务通知",
          id: "2"
        }
      ],
      checkedCities: [],
      searchForm: {
        warningType: "",
        warningCycle: "",
        warningTime: "",
        firstDay: "",
        alarmType: "",
        alarmCycle: "",
        type: "",
        user: ""
      },
      searchFormData: {
        warningType: "",
        warningCycle: "",
        warningTime: "",
        firstDay: "",
        alarmType: "",
        alarmCycle: "",
        type: "3",
        user: ""
      },
      checkList: ["1", "2"],
      empName: "",
      checked: "1",
      typleList: [
        {
          name: "现场采样仪器",
          id: 1
        },
        {
          name: "现场检测仪器",
          id: 2
        },
        {
          name: "实验室仪器",
          id: 3
        },
        {
          name: "校准仪器",
          id: 4
        }
      ],
      // 二级栏目数据
      secondColumnList: [],
      // 三级栏目数据
      threeColumnList: [],
      notifications: [],
      firstColumnList: [
        {
          name: "每周",
          id: 1,
          children: [
            {
              name: "周一",
              id: 1,
              children: [
                {
                  id: 1,
                  name: "00:00"
                },
                {
                  id: 2,
                  name: "01:00"
                },
                {
                  id: 3,
                  name: "03:00"
                },
                {
                  id: 4,
                  name: "04:00"
                },
                {
                  id: 5,
                  name: "05:00"
                },
                {
                  id: 6,
                  name: "06:00"
                },
                {
                  id: 7,
                  name: "07:00"
                },
                {
                  id: 8,
                  name: "08:00"
                },
                {
                  id: 9,
                  name: "09:00"
                },
                {
                  id: 10,
                  name: "10:00"
                },
                {
                  id: 11,
                  name: "11:00"
                },
                {
                  id: 12,
                  name: "12:00"
                },
                {
                  id: 13,
                  name: "13:00"
                },
                {
                  id: 14,
                  name: "14:00"
                },
                {
                  id: 15,
                  name: "15:00"
                },
                {
                  id: 16,
                  name: "16:00"
                },
                {
                  id: 17,
                  name: "17:00"
                },
                {
                  id: 18,
                  name: "18:00"
                },
                {
                  id: 19,
                  name: "19:00"
                },
                {
                  id: 20,
                  name: "20:00"
                },
                {
                  id: 21,
                  name: "21:00"
                },
                {
                  id: 22,
                  name: "22:00"
                },
                {
                  id: 23,
                  name: "23:00"
                },
                {
                  id: 24,
                  name: "24:00"
                }
              ]
            },
            {
              name: "周二",
              id: 2,
              children: [
                {
                  id: 1,
                  name: "00:00"
                },
                {
                  id: 2,
                  name: "01:00"
                },
                {
                  id: 3,
                  name: "03:00"
                },
                {
                  id: 4,
                  name: "04:00"
                },
                {
                  id: 5,
                  name: "05:00"
                },
                {
                  id: 6,
                  name: "06:00"
                },
                {
                  id: 7,
                  name: "07:00"
                },
                {
                  id: 8,
                  name: "08:00"
                },
                {
                  id: 9,
                  name: "09:00"
                },
                {
                  id: 10,
                  name: "10:00"
                },
                {
                  id: 11,
                  name: "11:00"
                },
                {
                  id: 12,
                  name: "12:00"
                },
                {
                  id: 13,
                  name: "13:00"
                },
                {
                  id: 14,
                  name: "14:00"
                },
                {
                  id: 15,
                  name: "15:00"
                },
                {
                  id: 16,
                  name: "16:00"
                },
                {
                  id: 17,
                  name: "17:00"
                },
                {
                  id: 18,
                  name: "18:00"
                },
                {
                  id: 19,
                  name: "19:00"
                },
                {
                  id: 20,
                  name: "20:00"
                },
                {
                  id: 21,
                  name: "21:00"
                },
                {
                  id: 22,
                  name: "22:00"
                },
                {
                  id: 23,
                  name: "23:00"
                },
                {
                  id: 24,
                  name: "24:00"
                }
              ]
            },
            {
              name: "周三",
              id: 3,
              children: [
                {
                  id: 1,
                  name: "00:00"
                },
                {
                  id: 2,
                  name: "01:00"
                },
                {
                  id: 3,
                  name: "03:00"
                },
                {
                  id: 4,
                  name: "04:00"
                },
                {
                  id: 5,
                  name: "05:00"
                },
                {
                  id: 6,
                  name: "06:00"
                },
                {
                  id: 7,
                  name: "07:00"
                },
                {
                  id: 8,
                  name: "08:00"
                },
                {
                  id: 9,
                  name: "09:00"
                },
                {
                  id: 10,
                  name: "10:00"
                },
                {
                  id: 11,
                  name: "11:00"
                },
                {
                  id: 12,
                  name: "12:00"
                },
                {
                  id: 13,
                  name: "13:00"
                },
                {
                  id: 14,
                  name: "14:00"
                },
                {
                  id: 15,
                  name: "15:00"
                },
                {
                  id: 16,
                  name: "16:00"
                },
                {
                  id: 17,
                  name: "17:00"
                },
                {
                  id: 18,
                  name: "18:00"
                },
                {
                  id: 19,
                  name: "19:00"
                },
                {
                  id: 20,
                  name: "20:00"
                },
                {
                  id: 21,
                  name: "21:00"
                },
                {
                  id: 22,
                  name: "22:00"
                },
                {
                  id: 23,
                  name: "23:00"
                },
                {
                  id: 24,
                  name: "24:00"
                }
              ]
            },
            {
              name: "周四",
              id: 4,
              children: [
                {
                  id: 1,
                  name: "00:00"
                },
                {
                  id: 2,
                  name: "01:00"
                },
                {
                  id: 3,
                  name: "03:00"
                },
                {
                  id: 4,
                  name: "04:00"
                },
                {
                  id: 5,
                  name: "05:00"
                },
                {
                  id: 6,
                  name: "06:00"
                },
                {
                  id: 7,
                  name: "07:00"
                },
                {
                  id: 8,
                  name: "08:00"
                },
                {
                  id: 9,
                  name: "09:00"
                },
                {
                  id: 10,
                  name: "10:00"
                },
                {
                  id: 11,
                  name: "11:00"
                },
                {
                  id: 12,
                  name: "12:00"
                },
                {
                  id: 13,
                  name: "13:00"
                },
                {
                  id: 14,
                  name: "14:00"
                },
                {
                  id: 15,
                  name: "15:00"
                },
                {
                  id: 16,
                  name: "16:00"
                },
                {
                  id: 17,
                  name: "17:00"
                },
                {
                  id: 18,
                  name: "18:00"
                },
                {
                  id: 19,
                  name: "19:00"
                },
                {
                  id: 20,
                  name: "20:00"
                },
                {
                  id: 21,
                  name: "21:00"
                },
                {
                  id: 22,
                  name: "22:00"
                },
                {
                  id: 23,
                  name: "23:00"
                },
                {
                  id: 24,
                  name: "24:00"
                }
              ]
            },
            {
              name: "周五",
              id: 5,
              children: [
                {
                  id: 1,
                  name: "00:00"
                },
                {
                  id: 2,
                  name: "01:00"
                },
                {
                  id: 3,
                  name: "03:00"
                },
                {
                  id: 4,
                  name: "04:00"
                },
                {
                  id: 5,
                  name: "05:00"
                },
                {
                  id: 6,
                  name: "06:00"
                },
                {
                  id: 7,
                  name: "07:00"
                },
                {
                  id: 8,
                  name: "08:00"
                },
                {
                  id: 9,
                  name: "09:00"
                },
                {
                  id: 10,
                  name: "10:00"
                },
                {
                  id: 11,
                  name: "11:00"
                },
                {
                  id: 12,
                  name: "12:00"
                },
                {
                  id: 13,
                  name: "13:00"
                },
                {
                  id: 14,
                  name: "14:00"
                },
                {
                  id: 15,
                  name: "15:00"
                },
                {
                  id: 16,
                  name: "16:00"
                },
                {
                  id: 17,
                  name: "17:00"
                },
                {
                  id: 18,
                  name: "18:00"
                },
                {
                  id: 19,
                  name: "19:00"
                },
                {
                  id: 20,
                  name: "20:00"
                },
                {
                  id: 21,
                  name: "21:00"
                },
                {
                  id: 22,
                  name: "22:00"
                },
                {
                  id: 23,
                  name: "23:00"
                },
                {
                  id: 24,
                  name: "24:00"
                }
              ]
            },
            {
              name: "周六",
              id: 6,
              children: [
                {
                  id: 1,
                  name: "00:00"
                },
                {
                  id: 2,
                  name: "01:00"
                },
                {
                  id: 3,
                  name: "03:00"
                },
                {
                  id: 4,
                  name: "04:00"
                },
                {
                  id: 5,
                  name: "05:00"
                },
                {
                  id: 6,
                  name: "06:00"
                },
                {
                  id: 7,
                  name: "07:00"
                },
                {
                  id: 8,
                  name: "08:00"
                },
                {
                  id: 9,
                  name: "09:00"
                },
                {
                  id: 10,
                  name: "10:00"
                },
                {
                  id: 11,
                  name: "11:00"
                },
                {
                  id: 12,
                  name: "12:00"
                },
                {
                  id: 13,
                  name: "13:00"
                },
                {
                  id: 14,
                  name: "14:00"
                },
                {
                  id: 15,
                  name: "15:00"
                },
                {
                  id: 16,
                  name: "16:00"
                },
                {
                  id: 17,
                  name: "17:00"
                },
                {
                  id: 18,
                  name: "18:00"
                },
                {
                  id: 19,
                  name: "19:00"
                },
                {
                  id: 20,
                  name: "20:00"
                },
                {
                  id: 21,
                  name: "21:00"
                },
                {
                  id: 22,
                  name: "22:00"
                },
                {
                  id: 23,
                  name: "23:00"
                },
                {
                  id: 24,
                  name: "24:00"
                }
              ]
            },
            {
              name: "周日",
              id: 7,
              children: [
                {
                  id: 1,
                  name: "00:00"
                },
                {
                  id: 2,
                  name: "01:00"
                },
                {
                  id: 3,
                  name: "03:00"
                },
                {
                  id: 4,
                  name: "04:00"
                },
                {
                  id: 5,
                  name: "05:00"
                },
                {
                  id: 6,
                  name: "06:00"
                },
                {
                  id: 7,
                  name: "07:00"
                },
                {
                  id: 8,
                  name: "08:00"
                },
                {
                  id: 9,
                  name: "09:00"
                },
                {
                  id: 10,
                  name: "10:00"
                },
                {
                  id: 11,
                  name: "11:00"
                },
                {
                  id: 12,
                  name: "12:00"
                },
                {
                  id: 13,
                  name: "13:00"
                },
                {
                  id: 14,
                  name: "14:00"
                },
                {
                  id: 15,
                  name: "15:00"
                },
                {
                  id: 16,
                  name: "16:00"
                },
                {
                  id: 17,
                  name: "17:00"
                },
                {
                  id: 18,
                  name: "18:00"
                },
                {
                  id: 19,
                  name: "19:00"
                },
                {
                  id: 20,
                  name: "20:00"
                },
                {
                  id: 21,
                  name: "21:00"
                },
                {
                  id: 22,
                  name: "22:00"
                },
                {
                  id: 23,
                  name: "23:00"
                },
                {
                  id: 24,
                  name: "24:00"
                }
              ]
            }
          ]
        },
        {
          name: "每日",
          id: 3,
          children: [
            {
              id: 1,
              name: "00:00"
            },
            {
              id: 2,
              name: "01:00"
            },
            {
              id: 3,
              name: "03:00"
            },
            {
              id: 4,
              name: "04:00"
            },
            {
              id: 5,
              name: "05:00"
            },
            {
              id: 6,
              name: "06:00"
            },
            {
              id: 7,
              name: "07:00"
            },
            {
              id: 8,
              name: "08:00"
            },
            {
              id: 9,
              name: "09:00"
            },
            {
              id: 10,
              name: "10:00"
            },
            {
              id: 11,
              name: "11:00"
            },
            {
              id: 12,
              name: "12:00"
            },
            {
              id: 13,
              name: "13:00"
            },
            {
              id: 14,
              name: "14:00"
            },
            {
              id: 15,
              name: "15:00"
            },
            {
              id: 16,
              name: "16:00"
            },
            {
              id: 17,
              name: "17:00"
            },
            {
              id: 18,
              name: "18:00"
            },
            {
              id: 19,
              name: "19:00"
            },
            {
              id: 20,
              name: "20:00"
            },
            {
              id: 21,
              name: "21:00"
            },
            {
              id: 22,
              name: "22:00"
            },
            {
              id: 23,
              name: "23:00"
            },
            {
              id: 24,
              name: "24:00"
            }
          ]
        },
        {
          name: "无固定频次",
          id: 2
        }
      ],
      alertNotifications: [
        {
          id: 1,
          name: "纳入告警首日",
          children: [
            {
              id: 1,
              name: "00:00"
            },
            {
              id: 2,
              name: "01:00"
            },
            {
              id: 3,
              name: "03:00"
            },
            {
              id: 4,
              name: "04:00"
            },
            {
              id: 5,
              name: "05:00"
            },
            {
              id: 6,
              name: "06:00"
            },
            {
              id: 7,
              name: "07:00"
            },
            {
              id: 8,
              name: "08:00"
            },
            {
              id: 9,
              name: "09:00"
            },
            {
              id: 10,
              name: "10:00"
            },
            {
              id: 11,
              name: "11:00"
            },
            {
              id: 12,
              name: "12:00"
            },
            {
              id: 13,
              name: "13:00"
            },
            {
              id: 14,
              name: "14:00"
            },
            {
              id: 15,
              name: "15:00"
            },
            {
              id: 16,
              name: "16:00"
            },
            {
              id: 17,
              name: "17:00"
            },
            {
              id: 18,
              name: "18:00"
            },
            {
              id: 19,
              name: "19:00"
            },
            {
              id: 20,
              name: "20:00"
            },
            {
              id: 21,
              name: "21:00"
            },
            {
              id: 22,
              name: "22:00"
            },
            {
              id: 23,
              name: "23:00"
            },
            {
              id: 24,
              name: "24:00"
            }
          ]
        },
        {
          id: 2,
          name: "每日",
          children: [
            {
              id: 1,
              name: "00:00"
            },
            {
              id: 2,
              name: "01:00"
            },
            {
              id: 3,
              name: "03:00"
            },
            {
              id: 4,
              name: "04:00"
            },
            {
              id: 5,
              name: "05:00"
            },
            {
              id: 6,
              name: "06:00"
            },
            {
              id: 7,
              name: "07:00"
            },
            {
              id: 8,
              name: "08:00"
            },
            {
              id: 9,
              name: "09:00"
            },
            {
              id: 10,
              name: "10:00"
            },
            {
              id: 11,
              name: "11:00"
            },
            {
              id: 12,
              name: "12:00"
            },
            {
              id: 13,
              name: "13:00"
            },
            {
              id: 14,
              name: "14:00"
            },
            {
              id: 15,
              name: "15:00"
            },
            {
              id: 16,
              name: "16:00"
            },
            {
              id: 17,
              name: "17:00"
            },
            {
              id: 18,
              name: "18:00"
            },
            {
              id: 19,
              name: "19:00"
            },
            {
              id: 20,
              name: "20:00"
            },
            {
              id: 21,
              name: "21:00"
            },
            {
              id: 22,
              name: "22:00"
            },
            {
              id: 23,
              name: "23:00"
            },
            {
              id: 24,
              name: "24:00"
            }
          ]
        }
      ],
    };
  },
  methods: {
    //点击tab切换
    handleClick() {
      this.activeName = "2";
    },
    //通知设置
    Notificationsettings() {
      this.NotificationsettingsV = true;
      //仪器授权使用人下拉接口
      const dat = {
        deptId: "380"
      };
      api.userList(dat).then(res => {
        if (res.code === 200) {
          this.factorData = res.result;
          // console.log(this.factorData);
        }
      });
    },
    handleCheckedCitiesUser(e) {
      console.log(e);
      this.searchFormData.user = e.toString();
      console.log(this.searchFormData.user);
    },
    StorageConfirm() {
      this.$refs.searchForm.validate(valid => {
        if (valid) {
          api
            .checkNotice(this.searchFormData)
            .then(request => {
              this.$notify({
                title: "设置成功",
                message: request.message,
                type: "success"
              });
              this.NotificationsettingsV = false;
              this.$refs.searchForm.resetFields();
            })
            .catch(() => {});
        } else {
          return false;
        }
      });
    },
    // 通知方式
    handleCheckedCitiesChange(e) {
      console.log(e);
      if (e.length === 2) {
        this.searchFormData.type = "3";
      } else {
        this.searchFormData.type = this.checkList[0];
      }
    },
    // 预警一级改动
    firstColumnChangeAction(e) {
      console.log(e);
      this.searchFormData.warningType = e.id;
      console.log(this.searchFormData.warningType);
      this.searchForm.warningCycle = {};
      this.searchForm.warningTime = {};
      this.secondColumnList = e.children;
      console.log(this.secondColumnList);
      e.children = this.secondColumnList;
      console.log(e.children);
      if (this.searchFormData.warningType === 1) {
        this.second = false;
        this.action = false;
        this.checked = true;
        this.showRentPrise = true;
        if (this.checked === true) {
          this.searchFormData.firstDay = "1";
        }
        this.theFirstDayOfWarning = false;
        this.searchForm.warningCycle = this.secondColumnList[0].name;
        console.log(this.searchForm.warningCycle);
        this.secondColumnChangeAction(e);
        console.log(62648);
      }

      if (this.searchFormData.warningType === 2) {
        this.second = true;
        this.action = true;
        this.checked = true;
        this.showRentPrise = true;
        if (this.checked === true) {
          this.searchFormData.firstDay = "1";
        }
        this.theFirstDayOfWarning = true;
      }

      if (this.searchFormData.warningType === 3) {
        this.second = false;
        this.action = true;
        this.checked = false;
        this.theFirstDayOfWarning = true;
        this.showRentPrise = false;

        this.searchForm.warningCycle = this.secondColumnList[8];
        console.log(this.searchForm.warningCycle);
        this.searchFormData.warningCycle = this.searchForm.warningCycle.id;
        // this.secondColumnChangeAction(e);
        console.log(62997788);
      }
    },
    // 预警二级改动
    secondColumnChangeAction(e) {
      console.log(e);
      // this.searchForm.warningTime = {};
      this.searchFormData.warningCycle = e.id;
      console.log(this.searchFormData.warningCycle);
      if (this.searchFormData.warningCycle === 1) {
        this.threeColumnList = e.children[0].children;
        console.log(this.threeColumnList);
        this.searchForm.warningTime = this.threeColumnList[8];
        console.log(this.searchForm.warningTime);
        this.searchFormData.warningTime = this.searchForm.warningTime.id;
        console.log(this.searchFormData.warningTime);
        // this.ehangeAction(e);
      } else {
        this.threeColumnList = this.threeColumnList;
        console.log(this.threeColumnList);
        this.searchForm.warningTime = this.threeColumnList[8];
        console.log(this.searchForm.warningTime);
        this.searchFormData.warningTime = this.searchForm.warningTime.id;
        console.log(this.searchFormData.warningTime);
        // this.ehangeAction(e);
      }
    },
    // 预警三级改动
    ehangeAction(e) {
      console.log(e);
      this.searchFormData.warningTime = e.id;
      console.log(this.searchFormData.warningTime);
    },
    // 告警一级改动
    secondColumnChange(e) {
      this.searchForm.alarmCycle = {};
      this.notifications = e.children;
      this.searchFormData.alarmType = e.id;
      this.searchForm.alarmCycle = this.notifications[8];
      console.log(this.searchForm.alarmCycle);
      this.searchFormData.alarmCycle = this.searchForm.alarmCycle.id;
    },
    // 告警二级改动
    secondColumn(e) {
      this.searchFormData.alarmCycle = e.id;
    },
    firstDayData(e) {
      // console.log(2156);
      console.log(e);
      if (e === true) {
        this.searchFormData.firstDay = "1";
      }
      if (e === false) {
        this.searchFormData.firstDay = "2";
      }
    }
  }
};
</script>

<style scoped lang="scss">
.clearfix {
  line-height: 40px;
  display: flex;
}
</style>
